#/*************************************************************************
#    > File Name: Print_Value.py
#    > Author: Yan Wang
#    > Mail: wangyan@imnu.edu.cn
#    > Created Time: 2022年04月04日 星期一 16时30分05秒
# ************************************************************************/
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.path.append('./Lib/')
from File_Operation import *
from Plot_Data_Operation import *

#file_name="mh_mch"
#parton_pt="10"
file_name="sba_tb"
parton_pt="10"
#file_name="sba_tb"
event_folder = "events_{fname}_{pt}".format(fname=file_name,pt=parton_pt)
BASDA_out_name = '/home/yancy/Software/BASDA/'+event_folder+'/Event_scan_{}/data/125/output_table_combined_125.dat'
hotmap_out_file="../output_data/significance/significance_data_{fname}_{pt}.dat".format(fname=file_name,pt=parton_pt)
hotmap_variable_name="sig_data"



df_name="../input_data/data/data_grid_{}.tsv".format(file_name)
if(file_name=="mh_mch"):
	df_para=["mh","mch"]
elif(file_name=="sba_tb"):
	df_para=["sba","tb"]

para_df = pd.read_table(df_name)
sig=Find_BASDA_OutputTable(BASDA_out_name,len(para_df))
Generate_Hotmap_Data(df_name, df_para, sig,hotmap_out_file,hotmap_variable_name)
